<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box{
            
            width: 350px;
            height: 400px;
            border:2px solid green; 
            background-image: url(./images/bg.gif);
            background-repeat: repeat;
            margin:20px auto;
        }
    
        a{
            display: block;
            widows: 200px;
            text-decoration: none;
            border-bottom: 2px dashed black; 
            background-color: white;
            margin-left: 20px;
            margin-right: 20px;
            
        }
    
        a:hover{
            text-decoration: revert;
            color: red;
        }
        

        h2{
            margin-left: 10px;
            padding-left: 10px;
            border-left: 5px solid darkgreen;
            color: white;
            font-size: 28px;
        }
    </style>
</head>
<body>
    <div class="box">
        <h2>爱宠知识</h2>
        <div>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        <a href="#"><img src="./images/tb.gif" >当养狗比养猫对健康更有利</a>
        </div>

    </div>
    
</body>
</html>